<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>翼蛇湖--题目列表</title>
    <style>
                /* 写网站起手式 */
        /*   *代表选中所有标签   */
        * {
            /* 消除网页的默认外边距 */
            margin: 0px;  
            /* 消除网页的默认内边距*/
            padding: 0px;
        }
        html,
        body {
            width: 100%;
            height :100%;
        }
        .container .navbar {
            width: 100%;
            height: 50px;
            background-color: black;
            /* 给副级标签设置 overflow， 取消后续float 带来的影响 */
            overflow: hidden;
        }
        .container .navbar a{
            /* 设置 a 标签的宽度, 但a 标签默认是行内元素*/
            display: inline-block;
            width: 80px;
            /* 设置 navbar 中的a 标签字体颜色 */
            color: white;
            /* 设置字体大小 */
            font-size: large;
            line-height: 50px;
            /* 去掉a标签的链接下划线 */
            text-decoration:none; 
            /* 设置a标签中的文字居中 */
            text-align: center;
        }
        /* 设置鼠标事件 */
        .container .navbar a:hover{
            background-color: green;
        }
        .container .navbar .login{
            float: right;
        }

        .container .question_list{
            padding-top: 50px;
            width: 800px;
            height: 100%;
            margin: 0px auto;
            /* background-color: #ccc; */
            text-align: center;
        }

        .container .question_list table{
            width: 100%;
            font-size: large;
            font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
            margin-top: 50px;
        }
        .container .question_list table{
            width: 100%;
            font-size:large;
            font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
            margin-top: 50px;
            background-color:rgb(247, 244, 241);
        }
        .container .question_list h1{
            color:darkgoldenrod;
        }
        .container .question_list table .item{
            width: 100px;
            height: 40px;
            font-size:large;
            font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
        }
        .container .question_list table .item a{
            text-decoration: none;
            color:rgb(100, 100, 100);
        }
        .container .question_list table .item a:hover{
            color:blue;
            /* text-decoration: underline; */
        }
        .container .footer{
            width: 100%;
            height: 50px;
            text-align: center;
            line-height: 50px;
            color:#ccc;
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 导航栏 -->
        <div class="navbar">
            <a href="/">首页</a>
            <a href="/all_questions">题库</a>
            <a href="#">竞赛</a>
            <a href="#">讨论</a>
            <a href="#">学习</a>
            <a href="#">排名</a>
            <a class="login" href="#">登录</a>
        </div>
        <div class="question_list">
            <h1>燕山-题目列表</h1>
            <table>
                <tr>
                    <th class="item">编号</th>
                    <th class="item">题目</th>
                    <th class="item">难度</th>
                </tr>
                {{#question_list}}
                <tr>
                    <td class="item">{{number}}</td>
                    <td class="item"><a href="/question/{{number}}">{{title}}</a></td>
                    <td class="item">{{star}}</td>
                </tr>
                {{/question_list}}
            </table>
        </div>
        <div class="footer">
            <h4>@翼蛇湖-纪宁</h4>
        </div>
    </div>
</body>
</html>